package wiki.hitime.stl.daq.bean.db;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author zhangdaoping
 * @create 2019-07-18 16:00
 */
@Data
@Builder
@Table(name = "daq_msg_base_config")
public class DaqMsgBaseConfig {

    @Tolerate
    public DaqMsgBaseConfig(){}

    /**
     * 编号
     */
    @Id
    @Column(updatable = false, insertable = false)
    private Long id;

    /**
     * 配置名称
     */
    private String configName;

    /**
     * 消息类型
     */
    private Integer msgType;

    /**
     * 配置键
     */
    private String configKey;

    /**
     * 配置值
     */
    private String configValue;

    /**
     * 是否删除数据，0-有效，1-删除
     **/
    private Boolean isDelete;

    /**
     * 更新时间
     **/
    @Column(updatable = false, insertable = false)
    private Date modified;

    /**
     * 创建时间
     **/
    @Column(updatable = false, insertable = false)
    private Date created;

}
